AttestationService

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface Android
Link copied to clipboard
interface IOS

Properties

Link copied to clipboard
Link copied to clipboard

Groups ios-specific API to reduce toplevel clutter.

Functions

Link copied to clipboard
fun <T : PublicKey> verifyKeyAttestation(attestationProof: List<ByteArray>, expectedChallenge: ByteArray, keyToBeAttested: T): KeyAttestation<T>

Verifies key attestation for both Android and Apple devices. *

fun verifyKeyAttestation(attestationProof: List<ByteArray>, challenge: ByteArray, encodedPublicKey: ByteArray): KeyAttestation<PublicKey>

Same as verifyKeyAttestation, but taking an encoded (either ANSI X9.63 or DER) publix key as a byte array